<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>    
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<style type="text/css">
table {
	border: 1px solid #FF0000;
}

td {
	border: 1px solid #FF0000;
}
</style>
</head>
<body>
<form:form action="${abc.hid != null ? '../input1' : '../insert' }" method="post" modelAttribute="abc"> 
<table align="center"  border="2" cellpadding="0" cellspacing="0" width="300dp">
   <tr><th colspan="2">出租房屋管理 <form:hidden path="hid"/> </th></tr>
   <tr>
    <td align="center">所在区域:</td>
    <td>
      <form:select path="harea.aid" items="${areaList}" itemLabel="name" itemValue="aid"/><br>
    </td>
   </tr>
   <tr>
    <td align="center">小区名称:</td>
    <td><form:input path="hname"/> </td>
   </tr>
   <tr>
    <td align="center">房型:</td>
    <td><form:input path="hfx"/></td>
   </tr>
   <tr>
    <td align="center">房屋面积（/m²）:</td>
    <td><form:input path="hmj"/></td>
   </tr>
   <tr>
    <td align="center">装修情况:</td>
    <td><form:input path="hzx"/></td>
   </tr>
   <tr>
    <td align="center">楼层:</td>
    <td><form:input path="hlc"/></td>
   </tr>
   <tr>
    <td align="center">租金（￥）:</td>
    <td><form:input path="hzj"/></td>
   </tr>
   <tr>
    <td align="center">房东:</td>
    <td><form:input path="hfd"/></td>
   </tr>
   <tr>
    <td align="center">房东电话:</td>
    <td><form:input path="hfdtel"/></td>
   </tr>
   <tr>
    <td align="center">出租情况:</td>
    <td><form:radiobutton path="hqk" value="0"/>还未出租 <form:radiobutton path="hqk" value="1"/>已经出租</td>
   </tr>
   <tr>
    <td align="center" colspan="2"> <input type="submit" value="${abc.hid != null ? '修改' : '添加' }"/> </td>
   </tr>
</table>
</form:form>
</body>
</html>